//init.lua
//Server side stuff only
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
include( 'classes.lua' )
function GM:PlayerInitialSpawn( ply )
ply:Spectate( 4 )
ply:ConCommand( "user_menu" )
end
function GM:PlayerLoadout( ply )
	if ply:Team() == 1 then
	for k,v in pairs(wep[1]) do
	ply:Give(v) 
	end	
	elseif ply:Team() == 2 then
	for k,v in pairs(wep[2]) do
	ply:Give(v) 
	end	
	elseif ply:Team() == 3 then
	for k,v in pairs(wep[3]) do
	ply:Give(v) 
	end
	else
	for k,v in pairs(wep[1]) do
	ply:Give(v) 
	end	
     end
 end
 function team_1( ply ) 
     if ply:IsAdmin() then
	 ply:SetTeam( 1 )
	 ply:Spawn()
     end 
 end
  function team_2( ply ) 
     ply:SetTeam( 2 )
	 ply:Spawn()
 end 
 function team_3( ply ) 
     ply:SetTeam( 3 )
	 ply:Spawn()
 end 
 concommand.Add( "team_1", team_1 ) 
 concommand.Add( "team_2", team_2 )
 concommand.Add( "team_3", team_3 )
